package kr.hkit.powerjava.homework;

public class ABC {
	private int a;
	private int b;
	private int c;

	public ABC(int a, int b, int c) {
		this.a = a;
		this.b = b;
		this.c = c;
	}

	public int getAbcd() {
		int d = 0;
		if (this.a == 1) { // 자유
			if (c > 16) { // 야간
				if (b < 3) {
					d = 0;
				} else if (b < 13 || b > 64) {
					d = 25000;
				} else {
					d = 34000;
				}
			} else {
				if (b < 3) {
					d = 0;
				} else if (b < 13 || b > 64) {
					d = 25000;
				} else {
					d = 34000;
				}
			}

		} else {
			if (c > 16) { // 야간
				if (b < 3) {
					d = 0;
				} else if (b < 13 || b > 64) {
					d = 25000;
				} else {
					d = 34000;
				}
			} else {
				if (b < 3) {
					d = 0;
				} else if (b < 13 || b > 64) {
					d = 25000;
				} else {
					d = 34000;
				}
			}

		}

		return d;
	}

	




}
